package com.flyoil.petromp.utils;

import android.content.Context;

import com.cnpc.fyspcenter.sp.PreferenceFile;
import com.cnpc.fyspcenter.sp.SharedPreference;

/**
 * SharedPreference 的数据存储
 * <p>
 * Created by bingju on 2017/1/5.
 */
public class MoccaPreferences {

    private static final PreferenceFile sPrefs = new PreferenceFile("petromp_app", Context.MODE_PRIVATE);
    /**
     * 用户的头像
     */
    public static final SharedPreference<String> user_avatar = sPrefs.value("user_avatar", "");
    /**
     * 用户的签名
     */
    public static final SharedPreference<String> user_signature = sPrefs.value("user_signature ", "");
    /**
     * 判断用户的sessionId值
     */
    public static final SharedPreference<String> sessionId = sPrefs.value("sessionId", "");
    /**
     * APP是否需要更新
     */
    public static final SharedPreference<Boolean> app_new_versions = sPrefs.value("app_new_versions", false);
    /**
     * 用户是否登录过
     */
    public static final SharedPreference<Boolean> user_login = sPrefs.value("user_login", false);
    /**
     * 用户是否设置了签名
     */
    public static final SharedPreference<Boolean> signature_seted = sPrefs.value("signature_seted", false);
    /**
     * 用户账号
     */
    public static final SharedPreference<String> login_user = sPrefs.value("login_user", "");
    /**
     * 用户密码
     */
    public static final SharedPreference<String> login_pwd = sPrefs.value("login_pwd", "");
    /**
     *部门id
     */
    public static final SharedPreference<Integer> companyId = sPrefs.value("companyId", 0);
    /**
     * 用户id
     */
    public static final SharedPreference<Integer> userId = sPrefs.value("userId", 0);
}

